package com.example.mygrade.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.example.mygrade.domain.Course;
import com.example.mygrade.domain.SC;
import lombok.Data;

import java.io.Serializable;

@Data
public class importSC implements Serializable {
    /**
     * 学号
     */
    @Excel(name = "学号",width = 10.0)
    private String sno;

    /**
     * 姓名
     */
    @Excel(name = "姓名",width = 10.0)
    private String sname;

    /**
     * 课程号
     */
    @Excel(name = "课程号",width = 10.0)
    private String cno;

    /**
     * 课程名
     */
    @Excel(name = "课程名",width = 17.0)
    private String cname;
    /**
     * 分数
     */
    @Excel(name = "分数",width = 5.0)
    private Integer score;

    public importSC(SC sc){
        this.sno = sc.getSno();
        this.sname = sc.getSname();
        this.cno = sc.getCno();
        this.cname = sc.getCname();
        this.score = sc.getScore();
    }
}
